<html><head><title>IsInfinity</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">IsInfinity()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result.f = <font color="#006666"><b>IsInfinity</b></font>(Value.f)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Returns nonzero if the given value represents positive or negative infinity. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Value.f</i></td>
<td width="90%"> 
The value to check for infinity. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns nonzero if the input value represents positive or negative infinity and zero otherwise. 

</blockquote><p><b>Remarks</b></p><blockquote>

Checking for the infinity values should not be done using normal comparison, because it depends 
on the hardware implementation whether infinity is considered equal to itself or not. The value 
of positive infinity can be generated with the <a href="infinity.html">Infinity()</a> function. 
<br>
<br>
This function can handle <a href="../reference/variables.html">float and double</a> values. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  Result =<font color="#006666"> IsInfinity</font>(<font color="#006666">Infinity</font>())  <font color="#006666">; infinity</font>
  Result =<font color="#006666"> IsInfinity</font>(<font color="#006666">Log</font>(0))      <font color="#006666">; -infinity</font>
  Result =<font color="#006666"> IsInfinity</font>(1234.5)      <font color="#006666">; a finite number</font>
  Result =<font color="#006666"> IsInfinity</font>(<font color="#006666">NaN</font>())       <font color="#006666">; NaN is not the same as infinity</font>
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="infinity.html">Infinity()</a>, <a href="isnan.html">IsNaN()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=intq.html>IntQ()</a> - <a href=index.html>Math Index</a> - <a href=isnan.html>IsNaN()</a> ->

</body></html>